<template>
  <span class="date">{{date}}</span>
</template>

<script>
import util from '../../../libs/util'
export default {
  props: ['value', 'format'],
  data() {
    return {
      date: null
    }
  },
  mounted() {
    this.date = util.formatDate(this.value, this.format)
  }
}
</script>

<style>
</style>
